#ifndef __GLOBAL_H__
#define __GLOBAL_H__

// Delta value for equality comparison of 2 double values. NOTE: Two double values even if expect them to be the same,
// because of the internal storage representation, differ by a small qty. This value is for overcoming this limitation.
#define DELTA_DOUBLE_COMP   0.000001

// Probability with which an actor is in ACTIVE state
#define ACTOR_ACTIVE_PROB   1.0

// Negative infinity
#define NEGATIVE_INFINITY             -INT_MAX

// Squares the given number
#define SQR(a)  ((a)*(a))

// Time for which a passive actor will remain in that state (in clock cycles)
// TODO: Need to change to a proper time
#define ACTOR_PASSIVE_DURATION 1000


bool isEqual( double val1, double val2 );

#endif